
package com.fis.mca.persistence;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;


/**
 * <p>Java class for cycleFee complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType name="cycleFee">
 *   &lt;complexContent>
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       &lt;sequence>
 *         &lt;element name="cycle" type="{http://cyclefee.mca.fis.com/}cycle" minOccurs="0"/>
 *         &lt;element name="cycleChargeDetails" type="{http://www.w3.org/2001/XMLSchema}anyType" maxOccurs="unbounded" minOccurs="0"/>
 *         &lt;element name="cycleFeeId" type="{http://www.w3.org/2001/XMLSchema}int"/>
 *         &lt;element name="effectDate" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
 *         &lt;element name="expireDate" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
 *         &lt;element name="mcaPackage" type="{http://cyclefee.mca.fis.com/}mcaPackage" minOccurs="0"/>
 *         &lt;element name="monthFee" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         &lt;element name="price" type="{http://www.w3.org/2001/XMLSchema}int"/>
 *       &lt;/sequence>
 *     &lt;/restriction>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "cycleFee", propOrder = {
    "cycle",
    "cycleChargeDetails",
    "cycleFeeId",
    "effectDate",
    "expireDate",
    "mcaPackage",
    "monthFee",
    "price"
})
public class CycleFee {

    protected Cycle cycle;
    @XmlElement(nillable = true)
    protected List<Object> cycleChargeDetails;
    protected int cycleFeeId;
    @XmlSchemaType(name = "dateTime")
    protected Date effectDate;
    @XmlSchemaType(name = "dateTime")
    protected Date expireDate;
    protected McaPackage mcaPackage;
    protected String monthFee;
    protected int price;

    /**
     * Gets the value of the cycle property.
     * 
     * @return
     *     possible object is
     *     {@link Cycle }
     *     
     */
    public Cycle getCycle() {
        return cycle;
    }

    /**
     * Sets the value of the cycle property.
     * 
     * @param value
     *     allowed object is
     *     {@link Cycle }
     *     
     */
    public void setCycle(Cycle value) {
        this.cycle = value;
    }

    /**
     * Gets the value of the cycleChargeDetails property.
     * 
     * <p>
     * This accessor method returns a reference to the live list,
     * not a snapshot. Therefore any modification you make to the
     * returned list will be present inside the JAXB object.
     * This is why there is not a <CODE>set</CODE> method for the cycleChargeDetails property.
     * 
     * <p>
     * For example, to add a new item, do as follows:
     * <pre>
     *    getCycleChargeDetails().add(newItem);
     * </pre>
     * 
     * 
     * <p>
     * Objects of the following type(s) are allowed in the list
     * {@link Object }
     * 
     * 
     */
    public List<Object> getCycleChargeDetails() {
        if (cycleChargeDetails == null) {
            cycleChargeDetails = new ArrayList<Object>();
        }
        return this.cycleChargeDetails;
    }

    /**
     * Gets the value of the cycleFeeId property.
     * 
     */
    public int getCycleFeeId() {
        return cycleFeeId;
    }

    /**
     * Sets the value of the cycleFeeId property.
     * 
     */
    public void setCycleFeeId(int value) {
        this.cycleFeeId = value;
    }

    /**
     * Gets the value of the effectDate property.
     * 
     * @return
     *     possible object is
     *     {@link Date }
     *     
     */
    public Date getEffectDate() {
        return effectDate;
    }

    /**
     * Sets the value of the effectDate property.
     * 
     * @param value
     *     allowed object is
     *     {@link Date }
     *     
     */
    public void setEffectDate(Date value) {
        this.effectDate = value;
    }

    /**
     * Gets the value of the expireDate property.
     * 
     * @return
     *     possible object is
     *     {@link Date }
     *     
     */
    public Date getExpireDate() {
        return expireDate;
    }

    /**
     * Sets the value of the expireDate property.
     * 
     * @param value
     *     allowed object is
     *     {@link Date }
     *     
     */
    public void setExpireDate(Date value) {
        this.expireDate = value;
    }

    /**
     * Gets the value of the mcaPackage property.
     * 
     * @return
     *     possible object is
     *     {@link McaPackage }
     *     
     */
    public McaPackage getMcaPackage() {
        return mcaPackage;
    }

    /**
     * Sets the value of the mcaPackage property.
     * 
     * @param value
     *     allowed object is
     *     {@link McaPackage }
     *     
     */
    public void setMcaPackage(McaPackage value) {
        this.mcaPackage = value;
    }

    /**
     * Gets the value of the monthFee property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getMonthFee() {
        return monthFee;
    }

    /**
     * Sets the value of the monthFee property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setMonthFee(String value) {
    	if ("1".equals(value) || "true".equalsIgnoreCase(value))
        {
        	this.monthFee = "1";
        }
        else
        {
        	this.monthFee = "0";
        }
    }

    /**
     * Gets the value of the price property.
     * 
     */
    public int getPrice() {
        return price;
    }

    /**
     * Sets the value of the price property.
     * 
     */
    public void setPrice(int value) {
        this.price = value;
    }

}
